﻿@model Jb.Web.ViewModels.CompanyRegisterModel
@using Jb.Web.Utility;
@using Jb.Common.Extensions;

@{
    String pageTitle = "Register as an Employer";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
    //ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = JobSeekerMenu.Resume;
    bool _HasSaved = ViewData.HasSaved();
    String _CompanyName = Request.Form["CompanyName"];
    String _ContactName = Request.Form["Name"];
}

<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>Enter necessary information and then click the Save button.</div>
</div>
<div class="jb-page-content">
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)    
    <div class="editor-label">
		@Html.LabelFor(model => model.CompanyName)
	</div>
	<div class="editor-field">
		@Html.TextBoxFor(model => model.CompanyName)
        @Html.ValidationMessageFor(model => model.CompanyName)
	</div>
    <div class="editor-label">
		@Html.LabelFor(model => model.ContactName)
        <div class="jb-label-hint">Enter your name, this will be used as your company's primary contact person's name.</div>
	</div>
	<div class="editor-field">
		@Html.TextBoxFor(model => model.ContactName)
		@Html.ValidationMessageFor(model => model.ContactName)
	</div>
    <div class="editor-label">
		@Html.LabelFor(model => model.Email)
        <div class="jb-label-hint">
        Enter your personal email or your company email. Account activation email will be sent to this email address.
        </div>
	</div>
	<div class="editor-field">
		@Html.TextBoxFor(model => model.Email)
		@Html.ValidationMessageFor(model => model.Email)
	</div>
    <div class="jb-group-title">Login Information</div>
    <div class="editor-label">
		@Html.LabelFor(model => model.UserName)
        <div class="jb-label-hint">Provide an unique user name, later you will use this to login to @ConfigReader.SiteName</div>
	</div>
	<div class="editor-field">
		@Html.TextBoxFor(model => model.UserName)
		@Html.ValidationMessageFor(model => model.UserName)
	</div>
    <div class="editor-label">
		@Html.LabelFor(model => model.Password)
	</div>
	<div class="editor-field">
		@Html.PasswordFor(model => model.Password)
		@Html.ValidationMessageFor(model => model.Password)
	</div>
	<div class="editor-label">
		@Html.LabelFor(model => model.ConfirmPassword)
	</div>
	<div class="editor-field">
		@Html.PasswordFor(model => model.ConfirmPassword)
		@Html.ValidationMessageFor(model => model.ConfirmPassword)
	</div>		
    <div class="jb-button-container">
		<button class="btn btn-primary" type="submit" data-loading-text="Saving..."><i class="icon-hdd icon-white"></i> Register</button> 			
	</div>
}
</div>
@section JavaScriptPlaceHolder
{
@Html.JavaScript("jquery.validate.min.js", Url)
@Html.JavaScript("jquery.validate.unobtrusive.min.js", Url)
}

